<HTML>
<HEAD>
<TITLE>[Chapter 19] BorderLayout</TITLE>
<META NAME="author" CONTENT="John Zukowski">
<META NAME="date" CONTENT="Thu Jul 31 15:09:22 1997">
<META NAME="form" CONTENT="html">
<META NAME="metadata" CONTENT="dublincore.0.1">
<META NAME="objecttype" CONTENT="book part">
<META NAME="otheragent" CONTENT="gmat dbtohtml">
<META NAME="publisher" CONTENT="O'Reilly &amp; Associates, Inc.">
<META NAME="source" CONTENT="SGML">
<META NAME="subject" CONTENT="Java AWT">
<META NAME="title" CONTENT="Java AWT">
<META HTTP-EQUIV="Content-Script-Type" CONTENT="text/javascript">
</HEAD>
<body vlink="#551a8b" alink="#ff0000" text="#000000" bgcolor="#FFFFFF" link="#0000ee">

<DIV CLASS=htmlnav>
<H1><a href='index.htm'><IMG SRC="gifs/smbanner.gif"
     ALT="Java AWT" border=0></a></H1>
<table width=515 border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=172 align=left valign=top><A HREF="ch19_05.htm"><IMG SRC="gifs/txtpreva.gif" ALT="Previous" border=0></A></td>
<td width=171 align=center valign=top><B><FONT FACE="ARIEL,HELVETICA,HELV,SANSERIF" SIZE="-1">Chapter 19<br>java.awt Reference</FONT></B></TD>
<td width=172 align=right valign=top><A HREF="ch19_07.htm"><IMG SRC="gifs/txtnexta.gif" ALT="Next" border=0></A></td>
</tr>
</table>

&nbsp;
<hr align=left width=515>
</DIV>
<DIV CLASS=refnamediv>
<H1>BorderLayout</H1>

<H2>Name</H2>

BorderLayout

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch19-REFSECT1-AUTOID.6"></A></h2>
</DIV>


<p>
<img align=middle src="./figs/borderl.gif" alt="[Graphic: Figure from the text]" width=502 height=111 border=0>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-1">Description</A></h2>

<P CLASS=para>
<tt CLASS=literal>BorderLayout</tt> is a <tt CLASS=literal>LayoutManager</tt> 
that provides the means to lay out components along the edges of a container. 
It divides the container into five regions, named North, East, South, West, 
and Center. Normally you won't call the <tt CLASS=literal>LayoutManager</tt>'s 
methods yourself. When you <tt CLASS=literal>add()</tt> 
a <tt CLASS=literal>Component</tt> to a <tt CLASS=literal>Container</tt>, 
the <tt CLASS=literal>Container</tt> calls the <tt CLASS=literal>addLayoutComponent()</tt> 
method of its <tt CLASS=literal>LayoutManager</tt>. 

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-2">Class Definition</A></h2>

<DIV CLASS=screen>
<P>
<PRE>
public class java.awt.BorderLayout
    extends java.lang.Object
    implements java.awt.LayoutManager2, java.io.Serializable {
  // Constants
  public final static String CENTER; <img src="gifs/bstar.gif" alt="(New)" border=0>
  public final static String EAST; <img src="gifs/bstar.gif" alt="(New)" border=0>
  public final static String NORTH; <img src="gifs/bstar.gif" alt="(New)" border=0>
  public final static String SOUTH; <img src="gifs/bstar.gif" alt="(New)" border=0>
  public final static String WEST; <img src="gifs/bstar.gif" alt="(New)" border=0>
  
  // Constructors
  public BorderLayout();
  public BorderLayout (int hgap, int vgap);
  
  // Instance Methods
  public void addLayoutComponent (Component comp, Object constraints); <img src="gifs/bstar.gif" alt="(New)" border=0>
  public void addLayoutComponent (String name, Component component); <img src="gifs/wstar.gif" alt="(Deprecated)" border=0>
  public int getHgap(); <img src="gifs/bstar.gif" alt="(New)" border=0>
  public abstract float getLayoutAlignmentX(Container target); <img src="gifs/bstar.gif" alt="(New)" border=0>
  public abstract float getLayoutAlignmentY(Container target); <img src="gifs/bstar.gif" alt="(New)" border=0>
  public int getVgap(); <img src="gifs/bstar.gif" alt="(New)" border=0>
  public abstract void invalidateLayout(Container target); <img src="gifs/bstar.gif" alt="(New)" border=0>
  
  public void layoutContainer (Container target); 
  public abstract Dimension maximumLayoutSize(Container target); <img src="gifs/bstar.gif" alt="(New)" border=0>
  public Dimension minimumLayoutSize (Container target); 
  public Dimension preferredLayoutSize (Container target); 
  public void removeLayoutComponent (Component component); 
  public void setHgap (int hgap); <img src="gifs/bstar.gif" alt="(New)" border=0>
  public void setVgap (int vgap); <img src="gifs/bstar.gif" alt="(New)" border=0>
  public String toString();
}
</PRE>
</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-3">Constants</A></h2>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-3.1">CENTER</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-3.1.1">public final static String CENTER</A></h4>

<P CLASS=para>
A constant representing center orientation. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-3.2">EAST</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-3.2.1">public final static String EAST</A></h4>

<P CLASS=para>
A constant representing east orientation. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-3.3">NORTH</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-3.3.1">public final static String NORTH</A></h4>

<P CLASS=para>
A constant representing north orientation. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-3.4">SOUTH</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-3.4.1">public final static String SOUTH</A></h4>

<P CLASS=para>
A constant representing south orientation. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-3.5">WEST</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-3.5.1">public final static String WEST</A></h4>

<P CLASS=para>
A constant representing west orientation. 

</DIV>

</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-4">Constructors</A></h2>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-4.1">BorderLayout</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-4.1.1">public BorderLayout()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Constructs a <tt CLASS=literal>BorderLayout</tt> object. </DL>
</DIV>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-4.1.2">public BorderLayout (int hgap, int vgap)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>hgap</I><br>
<DD>

<P CLASS=para>
Horizontal space between each component in the container. 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>vgap</I><br>
<DD>

<P CLASS=para>
Vertical space between each component in the container. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Constructs a <tt CLASS=literal>BorderLayout</tt> object 
with the values specified as the gaps between each component in the container 
managed by this instance of <tt CLASS=literal>BorderLayout</tt>. </DL>
</DIV>

</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5">Instance Methods</A></h2>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.1">addLayoutComponent</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.1.1">public void addLayoutComponent (Component comp, Object constraints) <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>comp</I><br>
<DD>

<P CLASS=para>
The component being added. 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>constraints</I><br>
<DD>

<P CLASS=para>
An object describing the constraints on this component. </DL>
<p>
<DT CLASS=varlistentry>Implements<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>LayoutManager2.addLayoutComponent()</tt>

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Adds the component <tt CLASS=literal>comp</tt> to 
a container subject to the given <tt CLASS=literal>constraints</tt>. 
This is a more general version of <tt CLASS=literal>addLayoutComponent(String, 
Component)</tt> method. It corresponds to <tt CLASS=literal>java.awt.Container</tt>'s 
<tt CLASS=literal>add(Component, Object)</tt> method. In 
practice, it is used the same in version 1.1 as in Java 1.0.2, except 
with the parameters swapped: 

<DIV CLASS=screen>
<P>
<PRE>
Panel p = new Panel(new BorderLayout());
p.add(new Button("OK"), BorderLayout.SOUTH);
</PRE>
</DIV>

</DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.2">addLayoutComponent</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.2.1">public void addLayoutComponent (String name, Component component) <img src="gifs/wstar.gif" alt="(Deprecated)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>name</I><br>
<DD>

<P CLASS=para>
Name of region to add component to. 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>component</I><br>
<DD>

<P CLASS=para>
Actual component being added. </DL>
<p>
<DT CLASS=varlistentry>Implements <br>
<DD>

<P CLASS=para>
<tt CLASS=literal>LayoutManager.addLayoutComponent()</tt> 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Adds a <tt CLASS=literal>component</tt> to a container 
in region <tt CLASS=literal>name</tt>. This has been 
replaced in version 1.1 with the more general <tt CLASS=literal>addLayoutComponent(Component, 
Object)</tt>. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.3">getHgap</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.3.1">public int getHgap() <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
The horizontal gap for this <tt CLASS=literal>BorderLayout</tt> 
instance. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.4">getLayoutAlignmentX</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.4.1">public abstract float getLayoutAlignmentX (Container target) <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>target</I><br>
<DD>

<P CLASS=para>
The container to inspect. </DL>
<p>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
The value .5 for all containers. 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
This method returns the preferred alignment of the given container <tt CLASS=literal>target</tt>. 
A return value of 0 is left aligned, .5 is centered, and 1 is right aligned. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.5">getLayoutAlignmentY</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.5.1">public abstract float getLayoutAlignmentY (Container target) <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>target</I><br>
<DD>

<P CLASS=para>
The container to inspect. </DL>
<p>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
The value .5 for all containers. 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
This method returns the preferred alignment of the given container <tt CLASS=literal>target</tt>. 
A return value of 0 is top aligned, .5 is centered, and 1 is bottom aligned. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.6">getVgap</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.6.1">public int getVgap() <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
The vertical gap for this <tt CLASS=literal>BorderLayout</tt> 
instance. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.7">invalidateLayout</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.7.1">public abstract void invalidateLayout (Container target) <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>target</I><br>
<DD>

<P CLASS=para>
The container to invalidate. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Does nothing. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.8">layoutContainer</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.8.1">public void layoutContainer (Container target)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>target</I><br>
<DD>

<P CLASS=para>
The container that needs to be redrawn. </DL>
<p>
<DT CLASS=varlistentry>Implements <br>
<DD>

<P CLASS=para>
<tt CLASS=literal>LayoutManager.layoutContainer()</tt> 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Draws components contained within <tt CLASS=literal>target</tt>. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.9">maximumLayoutSize</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.9.1">public abstract Dimension maximumLayoutSize (Container target) <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>target</I><br>
<DD>

<P CLASS=para>
The container to inspect. 

<p>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
A <tt CLASS=literal>Dimension</tt> whose horizontal 
and vertical components are <tt CLASS=literal>Integer.MAX_VALUE</tt>. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
For <tt CLASS=literal>BorderLayout</tt>, a maximal 
<tt CLASS=literal>Dimension</tt> is always returned. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.10">minimumLayoutSize</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.10.1">public Dimension minimumLayoutSize (Container target)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>target</I><br>
<DD>

<P CLASS=para>
The container whose size needs to be calculated. </DL>
<p>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
Minimum <tt CLASS=literal>Dimension</tt> of the container 
<tt CLASS=literal>target</tt>. 

<p>
<DT CLASS=varlistentry>Implements<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>LayoutManager.minimumLayoutSize()</tt> 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Calculates minimum size of <tt CLASS=literal>target</tt>. 
container. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.11">preferredLayoutSize</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.11.1">public Dimension preferredLayoutSize (Container target)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>target</I><br>
<DD>

<P CLASS=para>
The container whose size needs to be calculated. </DL>
<p>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
Preferred <tt CLASS=literal>Dimension</tt> of the 
container <tt CLASS=literal>target</tt>. 

<p>
<DT CLASS=varlistentry>Implements<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>LayoutManager.preferredLayoutSize()</tt> 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Calculates preferred size of <tt CLASS=literal>target</tt> 
container. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.12">removeLayoutComponent</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.12.1">public void removeLayoutComponent (Component component)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>component</I><br>
<DD>

<P CLASS=para>
Component to stop tracking. </DL>
<p>
<DT CLASS=varlistentry>Implements<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>LayoutManager.removeLayoutComponent()</tt> 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Removes <tt CLASS=literal>component</tt> from any 
internal tracking systems. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.13">setHgap</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.13.1">public void setHgap (int hgap) <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>hgap</I><br>
<DD>

<P CLASS=para>
The horizontal gap value. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Sets the horizontal gap between components. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.14">setVgap</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.14.1">public void setVgap (int vgap) <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>vgap</I><br>
<DD>

<P CLASS=para>
The vertical gap value. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Sets the vertical gap between components. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.15">toString</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-5.15.1">public String toString()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
A string representation of the <tt CLASS=literal>BorderLayout</tt> object. 

<p>
<DT CLASS=varlistentry>Overrides<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>Object.toString()</tt> </DL>
</DIV>

</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-BORDERLAYOUT-SECT-6">See Also</A></h2>

<P CLASS=para>
<tt CLASS=literal>Component</tt>, <tt CLASS=literal>Container</tt>, 
<tt CLASS=literal>Dimension</tt>, <tt CLASS=literal>LayoutManager</tt>, 
<tt CLASS=literal>LayoutManager2</tt>, 
<tt CLASS=literal>Object</tt>, <tt CLASS=literal>String</tt> 

</DIV>


<DIV CLASS=htmlnav>

<P>
<HR align=left width=515>
<table width=515 border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=172 align=left valign=top><A HREF="ch19_05.htm"><IMG SRC="gifs/txtpreva.gif" ALT="Previous" border=0></A></td>
<td width=171 align=center valign=top><a href="index.htm"><img src='gifs/txthome.gif' border=0 alt='Home'></a></td>
<td width=172 align=right valign=top><A HREF="ch19_07.htm"><IMG SRC="gifs/txtnexta.gif" ALT="Next" border=0></A></td>
</tr>
<tr>
<td width=172 align=left valign=top>Adjustable <img src="gifs/bstar.gif" alt="(New)" border=0></td>
<td width=171 align=center valign=top><a href="index/idx_a.htm"><img src='gifs/index.gif' alt='Book Index' border=0></a></td>
<td width=172 align=right valign=top>Button</td>
</tr>
</table>
<hr align=left width=515>

<IMG SRC="gifs/smnavbar.gif" USEMAP="#map" BORDER=0> 
<MAP NAME="map"> 
<AREA SHAPE=RECT COORDS="0,0,108,15" HREF="../javanut/index.htm"
alt="Java in a Nutshell"> 
<AREA SHAPE=RECT COORDS="109,0,200,15" HREF="../langref/index.htm" 
alt="Java Language Reference"> 
<AREA SHAPE=RECT COORDS="203,0,290,15" HREF="../awt/index.htm" 
alt="Java AWT"> 
<AREA SHAPE=RECT COORDS="291,0,419,15" HREF="../fclass/index.htm" 
alt="Java Fundamental Classes"> 
<AREA SHAPE=RECT COORDS="421,0,514,15" HREF="../exp/index.htm" 
alt="Exploring Java"> 
</MAP>
</DIV>

</BODY>
</HTML>
